﻿using Microsoft.Win32;
using ReNameEx.Model;
using System.ComponentModel;
using System.IO;
using System.Windows;
using System.Windows.Controls;
using Wpf.Ui.Appearance;
using Wpf.Ui.Controls;

namespace ReNameEx
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindowNewVer : FluentWindow
    {
        public List<ReExRuleBase> Rules = new List<ReExRuleBase>();
        public List<ReExFile> Files = new List<ReExFile>();

        public HashSet<string> DisplayList = new HashSet<string>()
        {
            "IsApply","FileName","NewFileName","DirPath"
        };
        public MainWindowNewVer()
        {
            InitializeComponent();
            ApplicationThemeManager.Apply(ApplicationTheme.Dark);
            RegList.ItemsSource = Rules;
            FileList.ItemsSource = Files;
        }

        private void BtnAddFile_Click(object sender, RoutedEventArgs e)
        {
            AddHandler(GridViewColumnHeader.ClickEvent, new RoutedEventHandler(StackPanel_MouseLeftButtonUp));
            new OpenFileDialog().ShowDialog();
        }

        private void StackPanel_MouseLeftButtonUp(object sender, RoutedEventArgs e)
        {
            AAAA.Symbol = SymbolRegular.Accessibility24;
        }
    }
}